package com.raychi.demo.util;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.raychi.demo.entity.Custom;

public class CustomUtil {
	
	public static Custom createCustom(ResultSet rs) throws SQLException {
		Custom custom;
		custom = new Custom();
		custom.setName(rs.getString("name"));
		custom.setWaittime(rs.getInt("waittime"));
		custom.setId(rs.getInt("id"));
		return custom;
	}
}
